/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-27 09:34:45
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-04 17:26:04
 */

import { OrderPageParms, OrderListGetResultModel, OrderDetailParam } from './model/orderModel';
import { defHttp } from '/@/utils/http/axios';

import { BasicResult } from '../model/baseModel';

enum Api {
  OrderList = '/order/list',
  OrderDetail = '/order/detail',
  VarifyList = '/order.verify/list',
}
/**
 * 获取订单列表
 */
export const getOrderList = (params: OrderPageParms) =>
  defHttp.get<OrderListGetResultModel>({ url: Api.OrderList, params });

/**
 * 获取订单详情
 * @param params
 * @returns
 */
export const orderDetail = (params: OrderDetailParam) =>
  defHttp.get<BasicResult>({ url: Api.OrderDetail, params });
